package com.ashbur.rookie.article;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author eumenides
 */
@SpringBootApplication
@MapperScan(basePackages = "com.ashbur.rookie.article.mapper")
@ComponentScan(basePackages = {"com.ashbur", "org.n3r.idworker"})
@EnableEurekaClient
@EnableFeignClients({"com.ashbur"})
@EnableHystrix
// @RibbonClient(name = "service-user", configuration = MyRule.class)
public class ArticleApplication {

    public static void main(String[] args) {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
        SpringApplication.run(ArticleApplication.class, args);
    }
}
